package com.lengxf.pay.common.http;

import cn.hutool.http.Method;
import lombok.Data;

@Data
public class UriModel {

    private String uri;

    private Method method;

    public UriModel(String uri) {
        this.uri = uri;
    }

    public UriModel(String uri, Method method) {
        this.uri = uri;
        this.method = method;
    }

    public static UriModel modelPost(String uri) {
        return new UriModel(uri, Method.POST);
    }

    public static UriModel modelGet(String uri) {
        return new UriModel(uri, Method.GET);
    }


}
